//
//  NSString+ExchangeType.m
//  高仿暴走斗图
//
//  Created by key on 16/9/23.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "NSString+ExchangeType.h"

@implementation NSString (ExchangeType)

- (const char *)exchangeToChar {
    const char *new = [self UTF8String];
    return new;
}

+ (NSString *)exchangeChar:(const char *)aChar {
    NSString *new = [[NSString alloc] initWithUTF8String:aChar];
    return new;
}

- (NSString *)exchangeChar:(const char *)aChar {
    return [self.class exchangeChar:aChar];
}

@end
